package homework.threadwork.coding;

public class Dog implements Runnable{
    private String name;
    public Dog(String name){
        this.name=name;

    }
    @Override
    public void run() {
        for (int i=0;i<3;i++)
        System.out.println(name+ "-a dog ");
    }
}
